﻿
using UnityEngine;
using UnityEngine.UI;

public class AttCountNode : baseAnction {
    public InputField countInput;
    public override void init (Transform parent, toolOne toolOne, string recycleType) {
        base.init (parent, toolOne, recycleType);
        countInput.text = toolOne.saveData.count.ToString ();
    }
    public void onValueChange () {
        toolOne.changeCount (int.Parse (countInput.text));
    }
}